package com.mine.pojo;

import java.util.Date;

public class Cart {
	

	@Override
	public String toString() {
		return "Cart [flag=" + flag + ", id=" + id + ", userId=" + userId + ", shopId=" + shopId + ", goodsId="
				+ goodsId + ", selectedSpecifications=" + selectedSpecifications + ", chooseNum=" + chooseNum
				+ ", shopName=" + shopName + ", title=" + title + ", price=" + price + ", goodsPhotos=" + goodsPhotos
				+ ", createTime=" + createTime + "]";
	}

	private Integer flag;//flag==1 先查出购物车某个商品之前的数据，然后加上现在的chooseNum。flag==0表示chooseNum直接替换之前的购物车数据
	
	

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	private Long id;

    private Long userId;

    private Long shopId;
    
    private Long goodsId;
    
    private String selectedSpecifications;
    
    private Integer chooseNum;
    
    private String shopName;
    
    public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getPrice() {
		return price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}

	public String getGoodsPhotos() {
		return goodsPhotos;
	}

	public void setGoodsPhotos(String goodsPhotos) {
		this.goodsPhotos = goodsPhotos;
	}

	private String title;
    
    private Long price;
    
    private String goodsPhotos;
    
    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public String getSelectedSpecifications() {
		return selectedSpecifications;
	}

	public void setSelectedSpecifications(String selectedSpecifications) {
		this.selectedSpecifications = selectedSpecifications;
	}

	public Integer getChooseNum() {
		return chooseNum;
	}

	public void setChooseNum(Integer chooseNum) {
		this.chooseNum = chooseNum;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	private Date createTime;
}
